/*
 * @Description: 
 * @Author: zwx
 * @Date: 2024-11-06 16:34:30
 * @LastEditors: zwx
 * @LastEditTime: 2024-11-07 09:21:19
 * @又活了一天: 你真厉害！！！
 */
let age = 20;//number
let _age = "20";//String
let $age = 20;
console.log("😊yb ~ age == _age:", age == _age);
console.log("😊yb ~ age == _age:", age === _age);

console.log("😊yb ~ age == _age:", age == $age);
console.log("😊yb ~ age == _age:", age === $age);

// parseInt("20");
// console.log("😊yb ~ parseInt("20");:", parseInt("20"););
// console.log("😊yb ~ parseInt("20"):", parseInt("20"));


if (0){
  console.log("0的转换结果");
}

if (1){
  console.log("1的转换结果");
}

if (NaN){
  console.log("NaN的转换结果");
}
//0 NaN转boolean类型的结果是false
//其他数字 结果都是true
if (null){
  console.log("null的转换结果");
}
if ('1'){
  console.log("'1'的转换结果");
}
let str='false';
console.log(str);
if (str){
  console.log("代码执行");
}
var a = true;
var b =false;
var c= a+b;
var d= a+"1";
console.log("😊yb ~ d:", d);
Number(true)
console.log("😊yb ~ Number(true):", Number(true));
console.log("😊yb ~ Number(false):", Number(false));
console.log("😊yb ~ true:", true);
console.log("😊yb ~ false:", false);
console.log("😊yb ~ c:", c);

